<template>
  <div class="income">
    <div class="header">
      <div class="price">
        可提现
        <span>￥199</span>
      </div>
      <div class="btn active" @click="to('/pages-sub/income/index')">立即提现</div>
    </div>

    <div class="income-info">
      <div class="item">
        <div class="num">￥66</div>
        <div class="text">今日预估</div>
      </div>
      <div class="item">
        <div class="num">￥89</div>
        <div class="text">本月预估</div>
      </div>
      <div class="item">
        <div class="num">￥3</div>
        <div class="text">上月预估</div>
      </div>
    </div>

    <div class="tips">每月25号提现上月确认完成的订单收入</div>
  </div>
</template>
<script setup lang="ts">
import { to } from '@/utils/page'

defineOptions({ name: 'Income' })
</script>
<style lang="scss" scoped>
.income {
  padding: 24rpx 30rpx;
  margin: 40rpx 30rpx 0;
  background: #ffffff;
  border-radius: 30rpx;
  box-shadow: 0px 11rpx 19rpx 0 rgba(#000000, 0.05);
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    .price {
      font-size: 27rpx;
      line-height: 32rpx;
      color: var(--color3);
      span {
        margin-left: 4rpx;
        font-weight: 600;
        color: var(--color1);
      }
    }
    .btn {
      width: 154rpx;
      height: 54rpx;
      font-size: 27rpx;
      line-height: 54rpx;
      color: #fff;
      text-align: center;
      background: var(--color1);
      border-radius: 27rpx;
    }
  }
  .income-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30rpx;
    margin-top: 40rpx;
    .item {
      text-align: center;
      .num {
        font-size: 30rpx;
        font-weight: 700;
        line-height: 36rpx;
        color: var(--color1);
      }
      .text {
        margin-top: 24rpx;
        font-size: 23rpx;
        color: var(--color3);
      }
    }
  }

  .tips {
    margin-top: 36rpx;
    font-size: 20rpx;
    color: var(--color4);
  }
}
</style>
